package vip.xiaonuo.bi.core.dataset.enums;


public enum DorisDataType {
    STRING("STRING","varchar"),
    INT("INT","number"),
    FLOAT("FLOAT","number"),
    DOUBLE("DOUBLE","number"),
    BOOLEAN("BOOLEAN","varchar"),

    LONG("BIGINT","number"),
    SHORT("SHORT","number"),
    DATE("DATE","varchar"),
    TIMESTAMP("TIMESTAMP","varchar");
    private  String value;
    private  String type;

    DorisDataType(String value,String type) {
        this.value = value;
        this.type = type;
    }
    public static  DorisDataType getInstance(String type){
        return valueOf(type.toUpperCase());
    }
    public String getValue() {
        return value;
    }
    public String getType() {
        return type;
    }
}
